package cpi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cpi.entity.Collection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * (Collection)表数据库访问层
 *
 * @author makejava
 * @since 2022-07-18 14:47:29
 */
@Repository
public interface CollectionDao extends BaseMapper<Collection> {
    List<Map<String, Object>> selectProvince();

    List<Map<String, Object>> selectType();

    List<Map<String, Object>> getByid(@Param("id")int id);

    int collectProvince(@Param("collect_name")String collect_name,@Param("type") String type,@Param("province") String province,@Param("time") int time);
    int delete(@Param("type") String type,@Param("province") String province,@Param("time") Integer time);

    int isProvince(@Param("type")String type,@Param("time") int time);

    int isType(@Param("province")String province,@Param("time") int time);
}

